# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=goofile
pkgver=1.5
pkgrel=5
groups=('blackarch' 'blackarch-recon')
pkgdesc='Command line filetype search.'
url='https://code.google.com/p/goofile/'
license=('MIT')
arch=('any')
source=("https://goofile.googlecode.com/files/${pkgname}v${pkgver}.zip")
sha512sums=('2df1cd7b12a5356b91fc7bd38d769dc19c112d74')

prepare () {
  cd "${pkgname}v${pkgver}"

  sed -i 's/env python/env python2/' *.py
}

package() {
  cd "${pkgname}v${pkgver}"

  install -Dm 755 "$pkgname.py" "$pkgdir/usr/bin/$pkgname"
}

